import java.util.*;

public class Main3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        double r = sc.nextDouble();
        double perimeter = Math.PI*2*(r+3);
        double area = ((r+3)*(r+3)-(r*r))*Math.PI;

        System.out.print("Fencing Cost is $");
        System.out.printf("%.2f\n",perimeter*35);

        System.out.print("Concrete Cost is $");
        System.out.printf("%.2f\n",area*20);

        sc.close();
    }
}
